/*
	@file: log/include/LogContext.h
	@author: Wolfhead
*/
#ifndef _LOG_LOG_CONTEXT_H_
#define _LOG_LOG_CONTEXT_H_

#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/thread.hpp>

namespace logger
{

class LogContext
{
public:

	LogContext(
		const char * filename_,
		const char * function_,
		int			 line_
		)
		: time(boost::posix_time::microsec_clock::local_time())
		, thread_id(boost::this_thread::get_id())
		, filename(filename_)
		, function(function_)
		, line(line_)
	{


	}


	boost::posix_time::ptime 	time;
	boost::thread::id 			thread_id;
    const char * 				filename;
    const char * 				function;
    int          				line;
};

}//namespace logger

#endif // #ifndef _LOG_LOG_CONTEXT_H_
